package com.hko.qrip.dao.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;

import com.hko.qrip.bean.GlygaAAlert;
import com.hko.qrip.dao.GlygaDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class GlygaDaoImpl implements GlygaDao {
	@Autowired
	private SqlMapClient sqlMapClient;

	@Override
	public int insertAAlert(GlygaAAlert alert) {
		try {
			return sqlMapClient.update("insertAAlert", alert);
		} catch (SQLException e) {
			return 0;
		}
	}

}
